<table>
	<caption><g:message code="moc.tc.id.label" default="Id" />:${fieldValue(bean: tcInstance, field: "id")}</caption>
    <tbody>
    
        <tr class="prop">
            <td class="name"><g:message code="moc.tc.tc003.label" default="Tc003" /></td>
            <td class="value"><g:formatDate format="yyyy-MM-dd HH:mm" date="${tcInstance?.tc003}" /></td>
            <td class="name"><g:message code="moc.tc.tc004.label" default="Tc004" /></td>
            <td class="value"><g:formatDate format="yyyy-MM-dd HH:mm" date="${tcInstance?.tc004}" /></td>
            <td class="name"><g:message code="moc.tc.tc020.label" default="Tc020" /></td>
            <td class="value">${fieldValue(bean: tcInstance, field: "tc020")}</td>
        </tr>
        
        <tr class="prop">
            <td class="name"><g:message code="moc.tc.tc001.label" default="Tc001" /></td>
            <td class="value">${fieldValue(bean: tcInstance, field: "tc001")}</td>
            <td class="name"><g:message code="moc.tc.tc002.label" default="Tc002" /></td>
            <td class="value">${fieldValue(bean: tcInstance, field: "tc002")}</td>
            <td class="name"><g:message code="moc.tc.tc005.label" default="Tc005" /></td>
            <td class="value">${formatNumber(number : tcInstance.tc005, format: '###,##0.000000')}</td>
        </tr>
        
        <tr class="prop">
            <td class="name"><g:message code="moc.tc.ti.label" default="Ti" /></td>
            <td class="value">${tcInstance?.ti?.ti001},${tcInstance?.tc017}</td>
            <td class="name"><g:message code="moc.tc.tc017.label" default="Tc017" /></td>
            <td class="value">${tcInstance?.standardWorkForce}</td>
            <!--正常换线-->
            <td class="name"><g:message code="moc.tc.tc022.label" default="Tc022" /></td>
            <td class="value">${formatNumber(number : tcInstance.tc022, format: '###,##0.000000')}</td>
        </tr>
        
        <tr class="prop">
            <td class="name"><g:message code="moc.tc.tc018.label" default="Tc018" /></td>
            <td class="value">${formatNumber(number : tcInstance.tgs*.tg003.sum(), format: '###,##0.000000')}</td>
            <!--报表总工时-->
            <td class="name"><g:message code="moc.tc.tc021.label" default="Tc021" /></td>
            <td class="value">${formatNumber(number : tcInstance.tc021, format: '###,##0.000000')}</td>
            <td class="name"><g:message code="moc.tc.tc010.label" default="Tc010" /></td>
            <td class="value">${formatNumber(number : tcInstance.tc005 + tcInstance.tgs*.tg003.sum(), format: '###,##0.000000')}</td>
        </tr>       
        
        <tr class="prop">
            <td class="name"><g:message code="moc.tc.tc011.label" default="Tc011" /></td>
            <td class="value">${formatNumber(number : tcInstance.tc011 , format: '###,##0.000000')}</td>
            <td class="name"><g:message code="moc.tc.tc012.label" default="Tc012" /></td>
            <td class="value">${formatNumber(number : tcInstance.tc012 , format: '###,##0.00%')}</td>
            <td class="name"><g:message code="moc.tc.tc013.label" default="Tc013" /></td>
            <td class="value">${formatNumber(number : tcInstance.tc013 , format: '###,##0.00%')}</td>
        </tr>
        
        <tr class="prop">
            <td class="name"><g:message code="moc.tc.owner.label" default="Owner" /></td>
            <td class="value"><g:link controller="user" action="show" id="${tcInstance?.owner?.id}">${tcInstance?.owner?.username.encodeAsHTML()}</g:link></td>
            <td class="name"><g:message code="moc.tc.createdBy.label" default="Created By" /></td>
            <td class="value">
            	<g:link controller="user" action="show" id="${tcInstance?.createdBy?.id}">
            		${tcInstance?.createdBy?.username.encodeAsHTML()},
            		<g:formatDate date="${tcInstance?.dateCreated}" />
            	</g:link>
            </td>
            <td class="name"><g:message code="moc.tc.lastModifiedBy.label" default="Last Modified By" /></td>
            <td class="value">
            	<g:link controller="user" action="show" id="${tcInstance?.lastModifiedBy?.id}">
            		${tcInstance?.lastModifiedBy?.username.encodeAsHTML()},
            		<g:formatDate date="${tcInstance?.lastUpdated}" />
            	</g:link>
            </td>
        </tr>  
        
    </tbody>
</table>
